import request from '@/utils/request'
// 查询全部仓库
export const getlist = (params) => request.get('/api/warehouse/page', { params })
// 获取新仓库编号
export const getCode = () => request.get('api/codeFactory/next/CK')
// 新增仓库
export const add = (data) => request.post('api/warehouse', data)
// 删除仓库
export const del = id => request.delete('/api/warehouse/', { params: { 'ids[]': [id] } })
// 修改仓库
export const put = data => request.put('api/warehouse', data)
// 获取仓库详情
export const detail = id => request.get(`/api/warehouse/${id}`)
